package com.axiang.module_user.fragment;


import androidx.lifecycle.ViewModelProvider;
import androidx.fragment.app.Fragment;

import com.alibaba.android.arouter.facade.annotation.Route;
import com.axiang.lib_common.mvvm.fragment.BaseMvvmFragment;
import com.ren.lib_path.router.RouterFragmentPath;
import com.axiang.module_user.BR;
import com.axiang.module_user.R;
import com.axiang.module_user.databinding.FragmentUserBinding;
import com.axiang.module_user.factory.UserViewModelFactory;
import com.axiang.module_user.viewmodel.UserViewModel;

/**
 * A simple {@link Fragment} subclass.
 */
@Route(path = RouterFragmentPath.User.PAGER_ME)
public class UserFragment extends BaseMvvmFragment<FragmentUserBinding, UserViewModel> {

    @Override
    public int onBindLayout() {
        return R.layout.fragment_user;
    }

    @Override
    public void initData() {

    }

    @Override
    public String getToolbarTitle() {
        return null;
    }

    @Override
    public Class<UserViewModel> onBindViewModel() {
        return UserViewModel.class;
    }

    @Override
    public ViewModelProvider.Factory onBindViewModelFactory() {
        return UserViewModelFactory.getInstance(mActivity.getApplication());
    }

    @Override
    public void initViewObservable() {

    }

    @Override
    public int onBindVariableId() {
        return BR.viewModel;
    }
}
